/*
 * @文件描述:
 * @版本:
 * @作者:周晨阳
 * @Date:2021-10-31 09:57:02
 */
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui
{
    class MainWindow;
}
QT_END_NAMESPACE

enum DATA_TYPE
{
    MEM = 1,
    CPU,
    DISK
};

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void onViewChangeTitle(QString title);
    void onViewChangeRelValue(float relvalue);
    void onViewSetMemory(float relvalue);
    void onViewSetDisk(float relvalue);

private:
    Ui::MainWindow *ui;
private slots:
    void solt_ChangeTitle(QString title);
    void solt_ChangeRelValue(float relvalue);
    void solt_SetMemory(float relvalue);
    void solt_SetDisk(float relvalue);

signals:
    void signals_ChangeTitle(QString title);
    void signals_ChangeRelValue(float relvalue);
    void signals_SetMemory(float relvalue);
    void signals_SetDisk(float relvalue);

};
#endif // MAINWINDOW_H
